home *** CD-ROM | disk | FTP | other *** search
/ Ian & Stuart's Australian Mac 1993 September / September 93.iso / Archives / Utilities / Disk & File / Disk / CDRom / DontShareIt Lite / DontShareIt Lite.h < prev    next >
Text File  |  1993-06-17  |  874b  |  47 lines

  1. /* Don’tShareIt... Lite */
  2. /* by Jim Luther */
  3.  
  4. #include <SetUpA4.h>
  5. #include <LoMem.h>
  6. #include <Traps.h>
  7. #include <Types.h>
  8. #include <Files.h>
  9. #include <Resources.h>
  10. #include <GestaltEqu.h>
  11. #include <Processes.h>
  12.  
  13. #define kFileSharingCreator        'hhgg'
  14. #define kAppleShareCreator        'hhge'
  15. #define kASAdminCreator            'admn'
  16.  
  17. #define kAFPTranslatorName        "\p.AFPTranslator"
  18. #define SonyRefNum                0xfffb
  19.  
  20. #define    _ServerDispatch            0xA094
  21. #define    kAsyncBit                0x0400
  22. #define    kHFSBit                    0x0200
  23. #define    kTrapTypeMask            0x0600
  24. #define    kOSTrapType                0x0200
  25.  
  26. /*
  27. **    Prototypes
  28. */
  29.  
  30. Ptr PatchTrap(short trapWord, short trapType, ProcPtr newAddress);
  31.  
  32. Boolean IsTargetApp(void);
  33.  
  34. OSErr PGetVolInfo(void);
  35.  
  36. short NumToolboxTraps(void);
  37.  
  38. TrapType GetTrapType(short theTrap);
  39.  
  40. Boolean    TrapAvailable(short theTrap);
  41.  
  42. void PatchGetVolInfo(void);
  43.  
  44. void SetTrapAddrPatch(void);
  45.  
  46. void main(void);
  47.